package cn.e4j.modular.crm.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author miaoyl
 * @since 2019-01-24
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWAM_T")
public class GwamExport extends PO<GwamExport> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWAMENT", type = IdType.INPUT)
    private String GWAMENT;

    @Excel(name = "产品编号")
    private String GWAM001;

    @Excel(name = "品名")
    private String GWAML003;

    @Excel(name = "规格")
    private String GWAML004;

    @Excel(name = "助记码")
    private String GWAML005;

    private String GWAM003;

    @Excel(name = "产品分类")
    private String GWAM007;

    @Excel(name = "产品系列")
    private String GWAM004;

    private String GWAM005;

    private String GWAM006;

    /**
     * 产品生命周期
     */
    @Excel(name = "产品生命周期", replace = {"试销_1", "上市_2","爆量_3", "平稳_4","退市_5"})
    private String GWAM028;
    
    @Excel(name = "销售单位")
    private String GWAM008;

    private String GWAM009;

    private String GWAM010;

    private String GWAM011;

    private String GWAM012;

    private String GWAM013;

    @Excel(name = "图片链接")
    private String GWAM015;

    @Excel(name = "品牌")
    private String GWAM002;

    /**
     * 子品牌
     */
    @Excel(name = "子品牌")
    private String GWAM029;

    @Excel(name = "测试文件链接")
    private String GWAM018;

    @Excel(name = "备注")
    private String GWAM014;

    private String GWAM016;

    private String GWAM017;

    private String GWAM019;

    private String GWAM020;

    private String GWAMACTI;

    private BigDecimal GWAM021;

    private BigDecimal GWAM022;

    private BigDecimal GWAM023;

    private BigDecimal GWAM024;

    private String GWAM025;

    private String GWAM026;

    /**
     * 来源码
     */
    private String GWAM027;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime GWAMTRANDATE;


    @Override
    protected Serializable pkVal() {
        return this.GWAMENT;
    }

}
